// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import BasePanel from "../common/BasePanel";
import GameConfig from "../config/GameConfig";
import { POP_SHOW_TYPE } from "../constants/Enums";
import PopUpManager from "../manager/PopUpManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class FirstPanel extends BasePanel {

    // LIFE-CYCLE CALLBACKS:

    gotoBtn: cc.Node;

    // LIFE-CYCLE CALLBACKS:
    addListener(){

    }
    gotoClick(){
        PopUpManager.Inst.openPanel(GameConfig.PANEL_NAME.Prompt, POP_SHOW_TYPE.SCALE);
    }
    initPanel() {
        cc.log("打开界面!")
    }

    // update (dt) {}
}
